package cn.china.feign.inter;

import entity.Student;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service1")
public interface MyInterface {

    @RequestMapping(value = "/selectByPrimaryKey", produces = "application/json;charset:UTF-8")
    Student selectByPrimaryKey(@RequestParam("id") Integer id);

    @RequestMapping(value = "/getString", produces = "application/json;charset:UTF-8")
    String getString();
}
